import Index from './pages/Index.vue'
import Position from './pages/Position.vue'
import Search from './pages/Search.vue'
import Mine from './pages/Mine.vue'
import Detail from './pages/Detail.vue'

export default [
  {
    path: '/',
    component: Index,
    redirect: '/position',
    children: [
      {
        path: '/position',
        component: Position
      },
      {
        path: '/search',
        component: Search
      },
      {
        path: '/mine',
        component: Mine
      }
    ]
  },
  {
    path: '/detail/:id',
    component: Detail,
    name: 'detail'
  }
]
